﻿using System.IO;
using System.Text;

namespace ml_test_google_trans
{
    public class ReportHelper
    {
        public void SaveReportLogFile(string filePath, string contextValue)
        {
            if (File.Exists(filePath)) File.Delete(filePath);
            var sw = new StreamWriter(filePath,false,Encoding.UTF8);
            try
            {
                sw.Write(contextValue);
            }
            finally
            {
                sw.Dispose();
                sw.Close();
            }
        }
    }
}